package com.demo.springcloud.alibaba.nacos;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import jakarta.annotation.PreDestroy;

/**
 * SpringcloudAlibabaNacosProvider2
 * 
 * @author xiaojianhx
 * @version V1.0.0 $ 2023-11-19 01:18:07 init ---- xiaojianhx
 */
@SpringBootApplication
@EnableDiscoveryClient
public class SpringcloudAlibabaNacosProvider2 {

    public static void main(String[] args) {
        SpringApplication.run(SpringcloudAlibabaNacosProvider2.class, args);
    }

    @PreDestroy
    public void destroy() {
        System.out.println("pre destroy running....");
    }
}